package demo1110.demo01;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/10 13:54
 */
public class Rectangle extends Picture{
    @Override
    public void area(int length, int width) {
        System.out.println("长方形的面积="+length * width);
    }
    @Override
    public void perimeter(int length, int width) {
        System.out.println("长方形的周长="+(length + width) * 2);
    }
}
